{template 'common/header'}

<ul class="nav nav-tabs">
		<li><a href="{php echo $this->createWebUrl('report', array('op' => 'list'));}">管理</a></li>
		<li class="active"><a href="{php echo $this->createWebUrl('report', array('op' => 'post','regionid'=>$_GPC['regionid'], 'id'=>$item['id']));}">编辑</a></li>
	</ul>
	<form action="" class="form-horizontal form" method="post">
		<div class="panel panel-default">
		  <div class="panel-heading">
		    <h3 class="panel-title">建议信息</h3>
		  </div>
		  <div class="panel-body">
		    <div class="form-group">
			    <label for="" class="col-sm-2 control-label">状态</label>
			    <div class="col-sm-3">
			        <select name="status" class="form-control">
						<option value="0" {if $item['status'] == 0}selected{/if}>未解决</option>
						<option value="1" {if $item['status'] == 1}selected{/if}>已解决</option>
					</select>
			    </div>
			</div>
			<div class="form-group">
			    <label for="" class="col-sm-2 control-label">建议类型</label>
			    <div class="col-sm-3">
			        <select name="category" class="form-control">
					{loop $categories  $category}
						<option value="{$category['name']}" {if $category['name'] == $item['category']} selected{/if}>{$category['name']}</option>
					{/loop}
					</select>
			    </div>
			</div>
			<div class="form-group">
			    <label for="" class="col-sm-2 control-label">建议人</label>
			    <div class="col-sm-3">
			        <input type="text" value="{$item['realname']}" class="form-control" readonly="readonly"/>
			    </div>
			</div>
			<div class="form-group">
			    <label for="" class="col-sm-2 control-label">建议时间</label>
			    <div class="col-sm-3">
			       <input type="text" value="{php echo date('Y-m-d h:i:s', $item['createtime'])}" class="form-control" readonly="readonly"/>
			    </div>
			</div>
			<div class="form-group">
			    <label for="" class="col-sm-2 control-label">建议内容</label>
			    <div class="col-sm-3">
			       <textarea readonly="readonly" style="height:100px;" class="form-control" name="content" cols="70" id="content" >{$item['content']}</textarea>
			    </div>
			</div>
			 {if $item['img']}
            <div class="form-group">
                <label for="" class="col-sm-2 control-label">建议图片</label>
                <div class="col-sm-3">
                     {loop $item['img'] $value}
                        <img src="{$value['src']}" style="width: 60px; height: 60px;border:1px solid white;" />
                     {/loop}
                </div>
            </div>
            {/if}
			<div class="form-group">
			    <label for="" class="col-sm-2 control-label">处理结果</label>
			    <div class="col-sm-3">
			       <textarea style="height:100px;" class="form-control" name="resolve" cols="70" id="resolve" >{$item['resolve']}</textarea>
					<span class="help-block">填写处理结果后，默认为已解决该投诉</span>
			    </div>
			</div>
			<div class="form-group">
			    <label for="" class="col-sm-2 control-label">处理人</label>
			    <div class="col-sm-3">
			       <input type="text" value="{$item['resolver']}" name="resolver" class="form-control"/>
					<span class="help-block">此处为该建议的经办人，可以为空</span>
			    </div>
			</div>
			<div class="form-group">
				<label for="" class="col-sm-2 control-label"></label>
				<div class="col-sm-4">
			    	<button type="submit" class="btn btn-primary span3" name="submit" value="提交">提交</button>
					<input type="hidden" name="id" value="{$item['id']}">
					<input type="hidden" name="token" value="{$_W['token']}" />
				</div>
			</div>
		  </div>
		</div>
	</form>
{template 'common/footer'}